{extend name="base" /}
{block name="title"}
<title>提现-{$site_config.site_title}</title>
{/block}
{block name="body"}
<style type="text/css">
	#h-submit {width: 100%;float: left;padding: 3% 0;font-size: 18px;text-align: center;color: #c3c3c3;}
</style>
	<header class="page-header1">
		<a href="javascript:;" onClick="javascript :history.back(-1);"><img src="__STATIC__/img/back02.png" class="back_img" style="float:left;"/></a>
		<h3>提现</h3>
	</header>
	<form id="h-form">
	<div class="prepaid_details">
		<div class="prepaid_card">
			{empty name='list'}
			<div class="prepaid_card_list01 choose_bank_card">
				<div class="prepaid_card_list01_center son">暂无提现银行</div>
			</div>
			{else/}
			<div class="prepaid_card_list01 choose_bank_card">
				<div class="prepaid_card_list01_left">
					<img src="__STATIC__/img/mine_chongzhibao_icon03.png" class="prepaid_card_img"/>
				</div>
				<div class="prepaid_card_list01_center son">{$list.0.bank_name}{$list.0.card_id|cut_card_id}</div>
				<div class="prepaid_card_list01_right">
					<img src="__STATIC__/img/mine_chongzhibao_icon04.png" class="prepaid_card_img_right"/>
				</div>
			</div>
			{/empty}
		</div>
		
		<div class="prepaid_card">
			<div class="prepaid_card_list01" style="border-bottom:1px solid #d2d2d2;padding:2% 2%;">
				<div class="prepaid_card_amount">提现金额(元）</div>
				<div class="prepaid_card_input">
					<div class="prepaid_card_input_left">￥</div>
					<div class="prepaid_card_input_center">
						<input type="text" placeholder="请输入提现金额" class="inp_place" id="user_money" name="put_money" />
					</div>
					<!-- <div class="prepaid_card_input_right all">全部</div> -->
				</div>
			</div>
			<div class="prepaid_card_list01" style="padding:3% 2%;border-bottom:1px solid #d2d2d2;">
				<div class="prepaid_card_expect">选择钱包</div>
			</div>
			
			<section class="timecar">
			<div class="prepaid_card_list01" style="padding:3% 2%;border-bottom:1px solid #d2d2d2;">
				<div class="prepaid_card_left">
					<div class="timecar-checkbox">
						<label for="timecar" onselectstart="return false">
							<input type="radio" name="wallet_type" id="timecar1" value="8" checked="checked"/>
						</label>
					</div>
				</div>
				<div class="prepaid_card_center">
					<p style="height: 40px;line-height: 40px;">商家钱包({$user_info.shop_money})</p>
				</div>
			</div>
			
			<div class="prepaid_card_list01" style="padding:3% 2%;">
				<div class="prepaid_card_left">
					<div class="timecar-checkbox">
						<label for="timecar" onselectstart="return false" class="timecar-checkd">
							<input type="radio" name="wallet_type" id="timecar2" value='7'/>
						</label>
					</div>
				</div>
				<div class="prepaid_card_center">
					<p style="height: 40px;line-height: 40px;">增值宝({$user_info.balance})</p>
				</div>
			</div>
			</section>
			<!-- <div class="prepaid_card_list01" style="padding:3% 2%;border-bottom:1px solid #d2d2d2;border-top: 1px solid #d2d2d2;">
				<div class="prepaid_card_expect">提现方式</div>
			</div>
			
			<section class="timecar">
			<div class="prepaid_card_list01" style="padding:3% 2%;border-bottom:1px solid #d2d2d2;">
				<div class="prepaid_card_left">
					<div class="timecar-checkbox">
						<label for="timecar" onselectstart="return false">
							<input type="radio" name="speed" id="timecar1" value="1" checked="checked"/>
						</label>
					</div>
				</div>
				<div class="prepaid_card_center">
					<p>快速到账</p>
					<p>预计<span class="prepaid_card_expect_date">2小时</span>内到账</p>
				</div>
			</div>
			
			<div class="prepaid_card_list01" style="padding:3% 2%;">
				<div class="prepaid_card_left">
					<div class="timecar-checkbox">
						<label for="timecar" onselectstart="return false" class="timecar-checkd">
							<input type="radio" name="speed" id="timecar2" value='2'/>
						</label>
					</div>
				</div>
				<div class="prepaid_card_center">
					<p>普通到账</p>
					<p>预计<span class="prepaid_card_expect_date">{$tomorrow.month}月{$tomorrow.day}日</span>(一天后)23:59前到账</p>
				</div>
			</div>
			</section> -->
			
		</div>
		<div class="prepaid_card_confirm_input">
			<!-- <div id="h-submit">确认提现</div> -->
			<button type="button"  id="h-submit" style="border: 0;">确认提现</button>
		</div>
	</div>
	
	<div class="pop-panel11">
		<div class="details1 ">
			<div class="notice_list1">
				<div class="notice_bady1">
					<div class="notice_name1">选择付款方式</div>
				</div>
				<div class="close1">
					<img src="__STATIC__/img/close01.png" style="width:50%;"/>
				</div>
			</div>
			<div class="notice_content1">
				{empty name='list'}
				<div class="notice_list1">
					<div class="notice_list_center father">暂无数据</div>
				</div>
				{/empty}
				{foreach name="list" item="vo" key="k"}
				<div class="notice_list1">
					<div class="notice_list_left">
						<img src="__STATIC__/img/mine_chongzhibao_icon07.png" class="notice_list_left_img"/>
					</div>
					<div class="notice_list_center father">{$vo.bank_name}{$vo.card_id|cut_card_id}</div>
					<div class="notice_list_right {neq name="$k" value="0"}none{/neq}">
						<img src="__STATIC__/img/mine_chongzhibao_icon06.png" />
					</div>
					<input type="radio" name="bank_id" value="{$vo.id}" {eq name="$k" value="0"}checked{/eq} class="none">
				</div>
				{/foreach}
				<a href="{:url('home/user/addCard')}"><div class="notice_list1">
					<div class="notice_list_left">
						<img src="__STATIC__/img/mine_chongzhibao_icon10.png" class="notice_list_left_img"/>
					</div>
					<div class="notice_list_center">添加银行卡付款</div>
					<div class="notice_list_right1">
						<img src="__STATIC__/img/mine_icon10.png" style="width:50%;padding-top:25%;"/>
					</div>
				</div></a>
			</div>
		</div>
		<div class="bg1"></div>
	</div>
	</form>

	<script type="text/javascript">
		$('.choose_bank_card').click(function(){
			$('.pop-panel11').show();
		});
		$('.close1').click(function(){
			$('.pop-panel11').hide();
		});
	</script>
	
	
	<script type="text/javascript">
		$(".timecar-checkbox label").on('touchstart',function(){
			if($(this).hasClass('timecar-checkd')){
				$(".timecar-checkbox label").addClass("timecar-checkd")
				$(this).removeClass("timecar-checkd")
				
			}
		})
	</script>
	<script type="text/javascript">
		$(".timecar-checkbox1 label").on('touchstart',function(){
			if($(this).hasClass('timecar-checkd')){
				$(".timecar-checkbox1 label").addClass("timecar-checkd")
				$(this).removeClass("timecar-checkd")
				
			}
		})
	</script>
	
	<script type="text/javascript">
		$(function(){
		    $(".notice_list1").click(function() {
		    	$('.notice_list_right').hide();
		    	$(this).find('.notice_list_right').show();
		    	/*操作单选按钮*/
		    	$(this).find("input[name='bank_id']").attr('checked', 'checked'); 
		    	
		    	var content = $(this).find('.notice_list_center').html();
		    	$('.son').html(content);
		    	
		    	var content = $(this).find('.notice_list_left').html();
		    	$('.prepaid_card_list01_left').html(content);
		    });
		}); 
	</script>
	
	<script type="text/javascript">
    window.onload =function()
    {
        document.getElementById("h-submit").style.backgroundImage ="url(__STATIC__/img/confirm_01.png)";
         document.getElementById("h-submit").style.backgroundSize ="100% 100%";
        //鼠标悬停在按钮上时判断。
        document.getElementById("user_money").onkeyup = function()
        {
            if(document.getElementById("user_money").value=="")
            {
                document.getElementById("h-submit").style.backgroundImage ="url(__STATIC__/img/confirm_01.png)";
                document.getElementById("h-submit").style.backgroundSize ="100% 100%";
                document.getElementById("h-submit").innerHTML="确认提现"; 
            }else
            {
                document.getElementById("h-submit").style.backgroundImage ="url(__STATIC__/img/confirm_02.png)";
                document.getElementById("h-submit").style.backgroundSize ="100% 100%";
                document.getElementById("h-submit").style.color ="#fff";
                document.getElementById("h-submit").innerHTML="确认提现";
            }
        }
    }
    </script>
    {include file="public/submit" /}
{/block}

